package com.cyt.chattlibrary.message;

import android.content.Context;

import com.cyt.chattlibrary.message.model.MessageContent;

/**
 * @author QiQi
 * @ClassName: MessageHandler
 * @date 2018/10/20
 * @description
 */
public abstract class MessageHandler<T extends MessageContent> {
    private Context context;

    public MessageHandler(Context context) {
        this.context = context;
    }

    public abstract void decodeMessage(Message msg, T content);

    public abstract void encodeMessage(Message msg);

    public Context getContext() {
        return context;
    }
}
